//\d  \w  .表示除了换行符之外的任何字符
// let hd = "houdunren13141_-#$%^&*^%";
// console.log(hd.match(/.+/));

let xj = `
houdunren.com
hdscm.com
`;
//s修饰符，表示单行匹配
console.log(xj.match(/.+/s)[0]);

let tel = "010 - 22222222";
console.log(tel.match(/\d+ - \d{8}/));
// console.log(tel.match(/\d+\s-\s\d{8}/));
